package com.deng.springdemo;

import java.util.HashMap;
import java.util.Map;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * IndexController
 */
@RestController
public class IndexController {

    @RequestMapping("/index")
    public Object index() {

        Map<String, Object> map = new HashMap<>();
        map.put("1111", "22222");
        return map;
    }

    @RequestMapping("/index2")
    public Object index2() {

        Map<String, Object> map = new HashMap<>();
        map.put("1111", "22222222222222222222222");
        return map;
    }

}